fn other_fun() {
    println!("This is a function!");
}

fn other_fun1(n1: i32, n2: u32) {
    println!("n1 = {}, n2 = {}", n1, n2);
}

fn other_fun2(n1: i32, n2: i32) -> i32{
   let result = n1 + n2;
   return result;
   // n1 + n2
   // result
}

fn main() {
    other_fun();
    other_fun1(-11, 12);
    let c: i32 = other_fun2(-15, 16);
    println!("c = {}", c); 

    let num_y = {
        let num_x = 1;
        num_x + 1
    };

    let arr = [10, 20, 30, 40, 50];
    for element in arr.iter() {
        println!("the value is: {}", element);
    }
    
    println!("num_y = {}", num_y);
    println!("Hello, world!");
}
